b8cc1847fdf898f952951ad639bddc30176e3714,portal-impl/src/com/liferay/portlet/blogs/action/EditEntryMVCActionCommand.java,EditEntryMVCActionCommand,doProcessAction,#ActionRequest#ActionResponse#,148
Before Change
SessionErrors.add(actionRequest, e.getClass());
actionResponse.setRenderParameter(
"mvcPath", "/html/portlet/blogs/error.jsp");
}
else if (e instanceof EntryContentException ||
e instanceof EntryDescriptionException ||
After Change
}
}
catch (Exception e) {
String mvcPath = "/html/portlet/blogs/edit_entry.jsp";
if (e instanceof NoSuchEntryException ||
e instanceof PrincipalException) {
SessionErrors.add(actionRequest, e.getClass());
mvcPath = "/html/portlet/blogs/error.jsp";
}
else if (e instanceof EntryContentException ||
e instanceof EntryDescriptionException ||
e instanceof EntryDisplayDateException ||
e instanceof EntrySmallImageNameException ||
e instanceof EntrySmallImageSizeException ||
e instanceof EntryTitleException ||
e instanceof FileSizeException ||
e instanceof LiferayFileItemException ||
e instanceof SanitizerException) {
SessionErrors.add(actionRequest, e.getClass());
}
else if (e instanceof AssetCategoryException ||
e instanceof AssetTagException) {
SessionErrors.add(actionRequest, e.getClass(), e);
}
else {
Throwable cause = e.getCause();
if (cause instanceof SanitizerException) {
SessionErrors.add(actionRequest, SanitizerException.class);
}
else {
throw e;
}
}
actionResponse.setRenderParameter("mvcPath", mvcPath);
}
catch (Throwable t) {
_log.error(t, t);